import React from "react";
import ReactDOM from "react-dom/client";

class App extends React.Component{
	render(){
		return (
			<div>
				<h3>App->class</h3>
				
			</div>
		)
	}
}

function Child(){
	return (
		<div>
			<h3>Child->Function</h3>
			<App/>
		</div>
	)
}

ReactDOM.createRoot(document.querySelector("#root")).render((
	<div>
		<h3>我是挂载的内容</h3>
		<App/>
		<App/>
		<App/>
		<App/>
		<App/>
		<hr/>
		<Child></Child>
		<Child></Child>
		<Child></Child>
		<Child></Child>
		<Child></Child>
	</div>
))